<template>
	<w-container>
		<w-navbar id="my-nav" title="盲盒结果"></w-navbar>
		<view class="content">
			<!-- <w-image :src="info.rarity_icon" width="59" height="59"></w-image> -->
			<w-image :src="info.main_image" width="220" height="220" radius="10" class="mtb-16"></w-image>
			<text class="font-size-16 font-w-500 font-color-textPrimary">{{ info.name && handleLang(info.name)}}</text>
			<view class="font-size-12 font-color-999 mt-4">{{handleLang('藏品编号：')}}<text class="font-w-500 font-color-999">#{{ info.collection_code }}</text></view>
		</view>
		<view class="footer bg-color-item ptb-10">
			<view class="flex-center-sb plr-20">
				<w-button class="btnStyle" pain @click="$u.route({type:'redirectTo',url:'/pages/myCollection/myCollection'})">{{handleLang('我的藏品')}}</w-button>
				<w-button class="btnStyle"  @click="$u.route({type:'switchTab',url:'/pages/index/index'})">{{handleLang('继续购买')}}</w-button>
			</view>
			<u-safe-bottom></u-safe-bottom>
		</view>
	</w-container>
</template>

<script>
	export default {
		data() {
			return {
				info: uni.getStorageSync('blindBoxResult')
			};
		}
	}
</script>

<style lang="scss">
	.btnStyle{
		width: 320rpx;
		height: 92rpx;
		line-height: 92rpx;
		border-radius: 50rpx;
	}
	.content{
		width: 100%;
		padding: 104rpx 32rpx 228rpx;
		@extend .flex,.flex-dir-col,.flex-js-center,.flex-ai-center;
	}
	.footer{
		width: 100%;
		position: fixed;
		left: 0;
		bottom: 0;
	}
</style>